from django.conf.urls import url

from . import views




urlpatterns = [
    
    # 前台首页
    url(r'^$', views.index,name='myhome_index'),

    # 列表页
    url(r'^list/(?P<tid>[0-9]+)/$', views.list,name='myhome_list'),

    # 详情页
    url(r'^info/(?P<gid>[0-9]+)/$', views.info,name='myhome_goods'),

    # 注册页面
    url(r'^register/$', views.register,name='myhome_register'),

    # 登录页面
    url(r'^login/$', views.login,name='myhome_login'),
    # 退出登录
    url(r'^logout/$', views.logout,name='myhome_logout'),

    # 短信发送
    url(r'^sendsms/$', views.sendsms,name='myhome_sendsms'),



    # 购物车,添加
    url(r'^cart/add/$', views.cartadd,name='myhome_cartadd'),
    # 购物车列表,
    url(r'^cart/index/$', views.cartindex,name='myhome_cartindex'),
    # 更新购物车数量
    url(r'^cart/edit/$', views.cartedit,name='myhome_cartedit'),
    # 删除购物车商品
    # 清空购物车


    # 确认订单
    url(r'^confirm/order/$', views.confirmorder,name='myhome_confirmorder'),

    # 添加收货地址
    url(r'^address/insert/$', views.addressinsert,name='myhome_addressinsert'),

    # 设置默认指定
    url(r'^address/set/$', views.addressset,name='myhome_addressset'),



    # 提交订单
    url(r'^order/insert/$', views.orderinsert,name='myhome_orderinsert'),
    # 付款页面
    url(r'^buyjia/(?P<oid>[0-9]+)/$', views.buyjia,name='myhome_buyjia'),
    # 我的订单
    url(r'^myorders/$', views.myorders,name='myhome_myorders'),



    
]
